package com.laohei.looping_stack

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import com.laohei.looping_stack.component.LoopingStack
import com.laohei.looping_stack.ui.theme.Looping_stackTheme

class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContent {
            Looping_stackTheme {
                val images = remember {
                    listOf(
                        R.drawable.image_1,
                        R.drawable.image_2,
                        R.drawable.image_3,
                        R.drawable.image_4,
                        R.drawable.image_5
                    )
                }

                LoopingStack(
                    images = images,
                    modifier = Modifier
                        .fillMaxSize()
                        .background(Color.Black)
                )
            }
        }
    }
}

